const express = require("express");
const router = express.Router();

//挂载路由
router.get("/news",(req,res)=>{
    res.send({
        code:0,
        list:[
            {title:"新闻标题1",author:"记者A"},
            {title:"新闻标题2",author:"记者B"}
        ]
    });
})

router.get("/news2",(req,res)=>{
    
})

module.exports = router;